package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.BasePlan;
import com.yegs.jltqc.VO.BaseQuota;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BaseQuotaRepository extends JpaRepository<BaseQuota,Long> {

    Page<BaseQuota> findBaseQuotaByNameLike(String name,Pageable pageable);

    BaseQuota findBaseQuotaByNameAndAndRefId(String name, Long refId);

    List<BaseQuota> findBaseQuotasByRefId(Long refId);
}
